home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / DOY.HDR < prev    next >
Text File  |  1994-04-25  |  892b  |  40 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _Doy( dDate ) --> nDay
  8.  
  9. PARAMETERS:
  10.  
  11. dDate : date to derive Day-of-Year
  12.  
  13. SHORT:
  14.  
  15. Calculate a "Julian" day of year number from a given date.
  16.  
  17. DESCRIPTION:
  18.  
  19. _Doy() calculates the "day-of-year" for the given date.
  20.  
  21. If dDate is not specified, the system date is assumed. If dDate is not in
  22. the current year, then the return value represents the day-of-year for
  23. the year specified.
  24.  
  25. dDate can be in the format of mm/dd/yy or mm/dd/yyyy.
  26.  
  27. NOTE:
  28.  
  29.  
  30.  
  31. EXAMPLE:
  32.  
  33. t = _Doy() // assuming sysdate is 03/12/93
  34. Result: t = 71
  35.  
  36. t = _Doy(ctod('08/21/93'))
  37. Result: t = 233
  38.  
  39. ******************************************************************************/
  40.